package com.gdufe.mistakebook.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 问题实体类
 *
 * @author lzh
 * @TableName question
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Question implements Serializable {
    /**
     * 问题id
     */
    private Integer id;

    /**
     * 问题所属用户id
     */
    private Integer userId;

    /**
     * 1-存在；0-删除
     */
    private Integer status;

    /**
     * 错题标题
     */
    private String questionTitle;

    /**
     * 错题内容
     */
    private String questionContent;

    /**
     * 错题图片
     */
    private String questionImage;

    /**
     * 错题答案
     */
    private String questionAnswer;

    /**
     * 错题解析
     */
    private String questionAnalysis;

    /**
     * 错题总结
     */
    private String questionSummary;

    /**
     * 学科
     */
    private String subject;

    /**
     * 优先级
     */
    private String priority;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}